.scheduling{
    position: relative;
    padding: 20px;
    height: inherit;
    background: #fff;
    box-sizing: border-box;
    overflow: auto;
}
.scheduling *{
     box-sizing: border-box;
 }
.scheduling-chart{
    position: relative;
}
.scheduling_header{
    padding:30px 10px;
    background: #f4fafa;
    margin-bottom:20px;

    > span[data-type="title"]{
        display: inline-block;
        margin-right:15px;
    }

    > span[data-type="middle"]{
        display: inline-block;
        margin:0 15px;
    }

    .scheduling_calendar{
        display: inline-block;
        padding: 4px 25px;
        background: #fafafa;
        border: 1px solid #e7e7e7;
        text-align: center;
        min-width: 100px;
        min-height: 28px;
        vertical-align: middle;
        margin-top: -3px;
    }
}


.Yyd-chart{
    position: relative;
    overflow: auto;
    padding-bottom: 45px;
    box-shadow: 1px 2px 10px 1px rgba(0,0,0,.23);
}

.Yyd-chart-bg-canvas{
    background: #fff;
}
.Yyd-chart-bg-line{
    height: 1px;
    width: 100%;
    background: #f6f6f6;
    margin:60px 0;
}
.Yyd-chart-stroke-container {
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;;
    background-color: #f0f0f0;
    transition:.3s all;
    white-space: nowrap;
    >ul{
       display: inline-block;
       border:1px solid #d8d8d8;
    }
    >ul > li[data-type="chart-item"]{
        display: inline-block;
        position: relative;
        cursor: pointer;
        background-color: #f0f0f0;
        transition: .3s all ease;
        vertical-align: top;
        > span{
            display: block;
            width: 40px;
            height: 43px;
            padding-top:3px;
            line-height: 40px;
            border-right:1px solid #ddd;
            text-align: center;
            > span{
                display: block;
            }
        }
        &:hover{
            background: #fff;
        }
        &.empty{
            background: #fedbb6;

            &:hover{
                background: #fff;
                color:#000;
            }
        }

        &.currentDat{
            background: #36b3b3;
            >span{
                color:#fff;
            }
            &:hover{

            }
        }
        &.startDate{
            background: #4d7ffb;
            >span{
                color:#fff;
            }
            &:hover{

            }
        }
        &.endDate{
            background: #4d7ffb;
            >span{
                color:#fff;
            }
            &:hover{

            }
        }
    }
}

/*****************************************x轴线******************************************/
.Yyd-chart-yAxis{
    position: absolute;
    top: 0;
    bottom: 0;
    width: 45px;
    pointer-events:none;
    z-index: 100;
    .Yyd-chart-yAxis-wrapper{
        position: absolute;
        bottom:0;
        left: 0;
        padding-bottom: 58px;
        &::before{
            content:"";
            display: table;
        }
        > li {
            position: relative;
            margin-bottom: 49px;
            padding-left: 14px;
            font-size: 13px;
            line-height: 1;
            color:#666;
            &::after{
                content:"";
                position: absolute;
                width: 10px;
                height: 1px;
                background: #666;
                left:0;
                top:50%;
                transform:translateY(-50%);
            }
        }
    }
}
.Yyd-chart-xAxis{
    position: absolute;
    z-index: 2;
}
.Yyd-chart-stroke{
    position: absolute;
    width: 10px;
    height: 100%;
    bottom: 45px;
    background: #36b33f;
    left: 50%;
    margin-left: -5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
   transition: .3s all;
    & > div[data-type="info"]{
        position: absolute;
        top:-90px;
        left:50%;
        transform: translateX(-50%);
        width: 100px;
        min-height: 72px;
        border-radius: 10px;
        border:1px solid #36b3b3;
        background: #f4fafa;
        opacity: 0;
        visibility: hidden;
        z-index: 10;
        transition: .3s all ease;
        box-shadow: 0px 3px 10px rgba(0,0,0,.25);
        text-align: center;
        padding: 10px;
        > span {
            display: block;
            &.mark > span{
                color:#f12c44;
            }
        }
        &::after{
            content: "";
            position: absolute;
            left: 50%;
            bottom: -10px;
            width: 20px;
            height: 20px;
            margin-left: -10px;
            border: 1px solid #36b3b3;
            transform: rotate(45deg);
            background: #f4fafa;
            border-left: 0;
            border-top: 0;
            border-bottom-right-radius: 7px;
            box-shadow: 5px 3px 8px rgba(0,0,0,.15);
        }
    }
    &:hover > div[data-type="info"]{
        opacity: 1;
        visibility: visible;
    }
    &.chartStrokeRed{
        background: #f12c44;
    }
}
.Yyd-chart-stroke[data-type="red"]{
    background: #f12c44;
}

.Yyd-chart-transverse{

}
.Yyd-chart-transverse-canvas{
    position: relative;
    width: 100%;
    .Yyd-chart-transverse-item{
        position: relative;
        width: 100%;
        height: 66px;
        background-image:repeating-linear-gradient(to right,#f6f6f6 0px,#fff 1px,#fff 40px);
        border-bottom:1px solid #f6f6f6;
    }
}

.Yyd-chart-molecular-item-wrapper{
    position: absolute;
    width: 390px;
    top: 50%;
    margin-top: -15px;
    z-index: 15;

    >div[data-type="main"]{
        width:100%;
        height: 16px;
        background: #eee;
        > span{
            display: inline-block;
            width: 0%;
            height: 100%;
            line-height: 1;
            background-image: -webkit-linear-gradient(left,#57abfa,#4d81fa);
            text-align: center;
            color:#fff;
            vertical-align: top;
        }
    }

    >span[data-type="tail"]{
        position: absolute;
        width: 40px;
        height: 16px;
        left: 100%;
        line-height: 18px;
        top: 0;
        color: #fff;
        text-align: center;

        &[aria-color="end"]{
            background: #fc880c;
            border-radius: 20px;
        }
        &[aria-color="advance"]{
            background: #1100ed;
            border-top-right-radius: 15px;
            border-bottom-right-radius: 15px;
        }
        &[aria-color="delay"]{
            background: #f12c44;
            border-radius: 20px;
        }
        &[aria-color="before"]{
            background: #36b33f;
            border-top-right-radius: 15px;
            border-bottom-right-radius: 15px;
        }
    }
}
.Yyd-chart-molecular-item-wrapper,.Yyd-chart-molecular-item-wrapper > div[data-type="main"]>span{
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}


/*********************************************************图例说明*********************************************************/

.chart-view-describe{
    margin-top:30px;
    > span[data-type="title"]{
        display: inline-block;
        margin-right:15px;
    }
}
.chart-view-describe-list{
    display: inline-block;
    vertical-align: bottom;

    &::after{
        content:"";
        display:table;
        clear:both;
    }
    > li {
        > span {
            display: inline-block;
            min-width: 16px;
            padding: 0 5px;
            height: 16px;
            border-radius: 3px;
            background-color: #f12c44;
            margin-bottom: -3px;
            margin-right: 5px;
            color: #fff;
            line-height: 16px;

            &[data-color="red"]{
                background-color: #f12c44;
            }
            &[data-color="green"]{
                background-color: #36b33f;
            }
            &[data-color="orange"]{
                background-color: #fc880c;
            }
            &[data-color="blue"]{
                background-color: #1100ed;
            }
        }

        float:left;
        margin-right:20px;
    }
}

/*********************************************************车间Header标识*********************************************************/
.scheduling_WorkshopHeader{
    margin-bottom:30px;

    > div[data-type="block"]{
        display: inline-block;
        position: relative;
        background-color: #f4fafa;
        height: 28px;
        line-height:26px;
        padding: 0 20px;
        margin-right:15px;

        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        border:1px solid #36b3b3;
        font-size:14px;
        color:#36b3b3;
        vertical-align: middle;
    }

    > span{
        vertical-align: middle;
    }
}

.scheduling_WorkshopChart{
    position: relative;
}


/*********************************************************Footer*********************************************************/
.create_Production_footer{
    text-align: center;
}

